pp108 : Schema Editor

Schema Editor

This topic describes the sections and the tools in the Schema Editor.

This section describes various sections in the Schema Editor frame.

Schema Editor

Table 1. Sections in the Schema Editor Frame

Section

Description

Toolbox

The Schema Editor toolbox . The toolbox hosts a variety of tools you can use to build complex schemas. Refer to the table below for more information.

Schema Tree

This is the section where the graphical view of the schema is displayed. To start building the schema fragment, right-click the schema element, select Add and select the required child element.

Properties

This area enables you to define properties of each element that you include in the schema.

Table 2. Schema Editor Toolbox. This table describes the tools in the Schema Editor toolbox

Tool

Description

(Schema)

Defines the root element of a schema.

(Element)

Defines an element.

(Attribute)

Defines an attribute.

(Group)

Defines a group of elements to be used in complex type definitions.

(Attribute Group)

Defines an attribute group to be used in complex type definitions.

(Simple Type)

Defines a simple type and specifies the constraints and information about the values of attributes or text-only elements.

(Complex Type)

Defines a complex type element.

(Reference to Element)

Defines reference to an Element.

(Reference to Attribute)

Defines reference to an Attribute.

(Reference to Group)

Defines reference to a Group.

(Reference to Attribute Group)

Defines reference to an Attribute Group.

(Content)

Defines Content type for Elements. Elements can have different Content types.

(Model Group)

Defines Group which can be nested inside an element. After you create a group node or a complexType node, you can add a model group node as a child.

(Restriction)

Defines restrictions on a simpleType, simpleContent, or a complexContent.

(Aggregrator)

Defines an Aggregator.

(Facet)

Define restrictions on XML Elements.

(Extension)

Extends an existing simpleType or complexType element.

(Notation)

Describes the format of non-XML data within an XML document.

(Include)

Adds multiple schemas with the same target namespace to a document(include).

(Import)

Adds multiple schemas with different target namespace to a document (import).

(Redefine)

Redefines simple and complex types, groups, and attribute groups from an external schema.

(Identity Constraint)

Defines a set of elements as Identity Constraints.

(Selector Key)

Specifies an XPath expression that selects a set of elements for an identity constraint.

(Text)

Defines the text for documentation.

(Documentation)

Defines text comments in a schema (must go inside annotation).

(Annotation)

Specifies the top-level element for schema comments.

(Comment)

Defines the text comments.

(any Attribute)

Extends the XML document with attributes not specified by the schema.

(AppInfo)

Specifies information to be used by the application (must go inside annotation).

XML schemas comply to the standards set by the W3C. For detailed information on various types of schema elements and ways of creating schemas using these elements, refer to W3C XML Schema Elements.